@import '../../style/var.scss';

.container {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.goods-detail {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    // height: calc(100% - 130px);
    flex: 1;
    background-color: #f5f5f5;
    overflow: hidden;
    overflow-y: auto;
}

.top {
    margin-bottom: 20px;

    .banner {
        width: 750px;
        height: 750px;

        .goods-image {
            width: 100%;
            height: 100%;
        }
    }

    .goods {
        padding: 32px 26px 30px;
        width: 100%;
        background-color: #fff;

        .goods-info {
            display: flex;
            justify-content: space-between;
            margin-bottom: 26px;
            width: 100%;

            .goods-name,
            .goods-price {
                white-space: nowrap;
                font-size: 30px;
                line-height: 30px;
                font-weight: bold;
                color: rgba(51, 51, 51, 1);
            }

            .goods-name {
                max-width: 500px;
                @include oneRowOmit;
            }

            .goods-price {
                flex: 1;
                text-align: right;
            }
        }

        .goods-desc {
            font-size: 26px;
            line-height: 26px;
            font-weight: 300;
            color: rgba(153, 153, 153, 1);
        }
    }
}

.middle {
    padding: 30px 25px;
    width: 100%;
    background-color: #fff;

    .title {
        margin-bottom: 30px;
        font-size: 30px;
        font-weight: bold;
        color: rgba(51, 51, 51, 1);
        line-height: 72px;
    }

    .image {
        width: 100%;
    }

    .rich-text {
        .rich-img {
            width: 100% !important;
        }
    }
}

.bottom {
    display: flex;
    position: fixed;
    bottom: 0;
    align-items: center;
    padding: 20px 24px 20px 52px;
    width: 100%;
    height: 130px;
    background-color: #fff;
    z-index: 10;

    .consult-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-right: 56px;

        .consult {
            margin-bottom: 11px;
            width: 37px;
            height: 37px;
        }

        .text {
            font-size: 24px;
            white-space: nowrap;
            color: rgba(38, 38, 38, 1);
        }
    }

    .buy-now {
        width: 581px;
        height: 90px;
        font-size: 30px;
        font-weight: bold;
        line-height: 90px;
        text-align: center;
        color: rgba(255, 255, 255, 1);
        background: rgba(248, 161, 32, 1);
    }
}
